<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8" />
<{include file='mobile/default/lib/meta.html'}>
<title>商品分类 - <{$GLOBALS.cfg.site_name}></title>
<link rel="stylesheet" type="text/css" href="<{$common.theme}>/css/general.css" />
<link rel="stylesheet" type="text/css" href="<{$common.theme}>/iconfont/iconfont.css">
<link rel="stylesheet" type="text/css" href="<{$common.theme}>/css/search.css">
<script type="text/javascript" src="<{$common.theme}>/js/zepto.min.js"></script>
<script type="text/javascript" src="<{$common.theme}>/js/verydows.mobile.js"></script>
<script type="text/javascript" src="<{$common.theme}>/js/search.js"></script>
<script type="text/javascript">
$(function(){
  $('#cate-tabs a').click(function(){
    var i = $(this).index();
    $('#cate-tabs a.cur').removeClass('cur');
    $(this).addClass('cur');
    $('#cate-con dl.cur').removeClass('cur');
    $('#cate-con dl').eq(i).addClass('cur');
  });
});
</script>
</head>
<body>
<{include file='mobile/default/lib/searcher.html'}>
<div class="wrapper" id="wrapper">
  <!-- header start -->
  <div class="searcher">
    <div class="main">
      <a class="back pointer" href="<{url c='mobile/main' a='index'}>"><i class="iconfont">&#xe638;</i></a>
      <a class="latsw pointer" id="latsw"><i class="f18 iconfont">&#xe637;</i></a>
      <div class="scfake in cut"><input id="kwfake" type="text" value="" /></div>
    </div>
  </div>
  <div class="absmu latent hide" id="top-menus">
    <a href="<{url c='mobile/main' a='index'}>"><i class="iconfont">&#xe606;</i><span>首页</span></a>
    <a class="cur"><i class="iconfont">&#xe60b;</i><span>商品分类</span></a>
    <a href="<{url c='mobile/cart' a='index'}>"><i class="iconfont">&#xe603;</i><span>购物车</span></a>
    <a href="<{url c='mobile/user' a='index'}>"><i class="iconfont">&#xe632;</i><span>我的</span></a>
  </div>
  <!-- header end -->
  <{if !empty($cate_list)}>
  <div class="catewrap module cut">
    <div class="cate-top" id="cate-tabs">
      <{foreach $cate_list as $v}>
      <a <{if $v@first == true}>class="cur"<{/if}>><{$v.cate_name}></a>
      <{/foreach}>
    </div>
    <div class="cate-sub" id="cate-con">
      <{foreach $cate_list as $v}>
      <dl <{if $v@first == true}>class="cur"<{/if}>>
        <dt><a href="<{url c='mobile/search' a='index' cate=$v.cate_id}>">全部<{$v.cate_name}></a></dt>
        <dd>
          <{if !empty($v.children)}>
          <{foreach $v.children as $vv}>
          <a href="<{url c='mobile/search' a='index' cate=$vv.cate_id}>"><{$vv.cate_name}></a>
          <{/foreach}>
          <{/if}>
        </dd>
      </dl>
      <{/foreach}>
    </div>
  </div>
  <{else}>
  <div class="nodata">
    <div class="th"><span><i class="iconfont">&#xe60b;</i></span><div class="line"></div></div>
    <p>暂无商品分类记录</p>
  </div>
  <{/if}>
</div>
<script type="text/javascript" src="<{$common.baseurl}>/public/script/juicer.js"></script>
<{include file='mobile/default/lib/footer.html'}>
</body>
</html>